package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-CRM线索表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_clue_info")
@ApiModel(value = "ErpClueInfo对象", description = "ERP系统-CRM线索表")
public class ErpClueInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("客户名称")
    private String name;

    @ApiModelProperty("客户资料来源1-招标信息 2-线上信息 3-客户转介绍 4-销售拓展 5-线下信息 10-其它来源")
    private Integer source;

    @ApiModelProperty("运营品牌")
    private String operateBrand;

    @ApiModelProperty("省编号")
    private Integer provinceId;

    @ApiModelProperty("省名")
    private String province;

    @ApiModelProperty("市编号")
    private Integer cityId;

    @ApiModelProperty("市名")
    private String city;

    @ApiModelProperty("县编号")
    private Integer districtId;

    @ApiModelProperty("县名")
    private String district;

    @ApiModelProperty("客户地址")
    private String address;

    @ApiModelProperty("联系人")
    private String contactName;

    @ApiModelProperty("联系手机号")
    private String contactMobile;

    @ApiModelProperty("联系座机号")
    private String contactTelephone;

    @ApiModelProperty("联系人职位")
    private String contactPosition;

    @ApiModelProperty("联系邮箱")
    private String contactEmail;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("销售")
    private Integer salesUserId;

    @ApiModelProperty("最新跟进内容")
    private String lastFollowContent;

    @ApiModelProperty("最新跟进时间")
    private Date lastFollowTime;

    @ApiModelProperty("最新更新人")
    private Integer lastFollowUser;

    @ApiModelProperty("转化为客户的关联ID")
    private Integer customerId;

    @ApiModelProperty("转化时间")
    private Date changeTime;

    @ApiModelProperty("是否删除 1-删除 0-未删除")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

    @ApiModelProperty("创建时间")
    private Date createTime;

}
